//
//  YiJuWebShareViewModel.m
//  YiJuZhangShou2.0
//
//  Created by Sky on 16/5/16.
//  Copyright © 2016年 Mr.X. All rights reserved.
//

#import "YiJuWebShareViewModel.h"

@implementation YiJuWebShareViewModel

#pragma mark - Delegate NetworkingBaseManagerAPISuccessCallbackDelegate
//服务器请求成功，映射返回结果，并更新UI界面
- (void)manager:(NetworkingBaseManager *)manager callAPIDidSuccessWithParams:(NSDictionary *)responseParams {
    DDLogInfo(@"返回值%@",[responseParams description]);
    NSDictionary *dataDic = [responseParams objectForKey:@"data"];
    
}

#pragma mark - Private
- (void)personCenterMagazineloadRequest {
    self.manager = [NetworkingManagerFactory generateSHA256Manager];
    RequestGenerator *generator = [RequestGenerator sharedInstance];
    self.manager.apiName = [generator generateCommonApiWithName:[NSString stringWithFormat:@"users/%ld/shares/magazineType/%ld/magazines/%ld",[AppContext sharedInstance].userId,self.magazineType,self.magazineId]];
    self.manager.requestType = HTTP_POST;
    self.manager.successDelegate = self;
    self.manager.validator = self;
    [self.manager loadRequest];
}


@end
